﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCPhanCong.ascx.cs"
    Inherits="Web.giaovien.UCPhanCong" %>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
    BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4"
    GridLines="Horizontal" Width="100%" DataKeyNames="PCID" OnSelectedIndexChanging="GridView1_SelectedIndexChanging">
    <Columns>
        <asp:BoundField DataField="pcid" HeaderText="PCID" />
        <asp:TemplateField HeaderText="Lớp">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("LopHoc.TenLop") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Môn Học">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("MonHoc.TenMH") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="magv" HeaderText="Mã Giáo Viên" />
        <asp:TemplateField HeaderText="Tên Giáo Viên">
            <ItemTemplate>
                <asp:Label ID="Label2" runat="server" Text='<%# Eval("GiaoVien.TenGV") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="ngaybatdau" DataFormatString="{0:MM/dd/yyyy}" HeaderText="Ngày bắt đầu" />
        <asp:BoundField DataField="sotiet" HeaderText="Số tiết" />
        <asp:TemplateField HeaderText="Giờ Học">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("giobatdau") + "-" +Eval("gioketthuc") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:CommandField ShowSelectButton="True" SelectText="Chi tiết" />
    </Columns>
    <FooterStyle BackColor="White" ForeColor="#333333" />
    <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
    <SortedAscendingCellStyle BackColor="#F7F7F7" />
    <SortedAscendingHeaderStyle BackColor="#487575" />
    <SortedDescendingCellStyle BackColor="#E5E5E5" />
    <SortedDescendingHeaderStyle BackColor="#275353" />
</asp:GridView>
<p>
    &nbsp;</p>
<p>
    Chi tiết lịch học
</p>
<p>
    <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" BackColor="White"
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="100%">
        <Columns>
            <asp:BoundField DataField="LIID" HeaderText="STT" />
            <asp:BoundField DataField="SoTiet" HeaderText="Số Tiết" />
            <asp:BoundField DataField="Tuan" HeaderText="Tuần" />
            <asp:TemplateField HeaderText="Phòng Học">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("PhongHoc.TenPH") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <RowStyle ForeColor="#000066" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#007DBB" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#00547E" />
    </asp:GridView>
</p>
